package com.ny.mapper;

import com.ny.entity.Reservations;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReservationMapper {
    void addReservation(Reservations reservation);//该接口定义了 `addReservation` 方法，接收 `Reservations(表)` 对象作为参数，用于添加预约记录。
    List<Reservations> findAllReservations();//该 Mapper 接口定义了 `findAllReservations` 方法，用于查询所有预约信息。


    void  updateReservationStatus (@Param("reservationId") int reservationId, @Param("status") String status, @Param("rejectReason") String rejectReason);
//
//    int getClassroomIdByReservationId(int reservationId);

}
